Skip to content

ttl fix for rwa read - #577

Merged
ozgunozerk merged 3 commits into
mainfrom
rwa-ttl-fix
Feb 23, 2026
Merged

ozgunozerk merged 3 commits into
mainfrom
rwa-ttl-fix

Conversation

@ozgunozerk

@ozgunozerk ozgunozerk commented Feb 23, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #576

PR Checklist

  • Tests
  • Documentation

Summary by CodeRabbit

  • Refactor
    • Optimized identity data retrieval mechanisms to enhance data persistence and availability during active use.

@ozgunozerk
ozgunozerk requested a review from brozorec February 23, 2026 09:23
@coderabbitai

coderabbitai Bot commented Feb 23, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a1163e9 and 5d079b5.

📒 Files selected for processing (1)
  • packages/tokens/src/rwa/identity_registry_storage/storage.rs

Walkthrough

Two methods in the identity registry storage module now use the get_persistent_entry() helper function for retrieving identities from persistent storage. This ensures TTL extension occurs during read operations, preventing unexpected identity expiration when identities are modified or recovered.

Changes

Cohort / File(s) Summary
Identity Registry Storage TTL Extension
packages/tokens/src/rwa/identity_registry_storage/storage.rs
Updated modify_identity and recover_identity methods to use get_persistent_entry() helper instead of direct storage retrieval, ensuring TTL extension on identity reads.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • brozorec

Poem

🐰 A hop, a skip, through storage we go,
Identity reads now reap what they sow!
TTL extends with each gentle touch,
No expiration surprises, we love this much. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'ttl fix for rwa read' directly relates to the main change: fixing TTL extension in RWA identity read operations.
Description check ✅ Passed The PR description references issue #576 and confirms tests and documentation are included, following the template structure with completed checklist items.
Linked Issues check ✅ Passed The code changes in modify_identity and recover_identity now use get_persistent_entry() instead of direct storage access, directly addressing issue #576's requirement for TTL extension.
Out of Scope Changes check ✅ Passed All changes are focused on replacing direct storage reads with the TTL-extending helper in the two methods, staying within the scope of issue #576.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rwa-ttl-fix

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.23%. Comparing base (a1163e9) to head (5d079b5).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
- Coverage   96.23%   96.23%   -0.01%     
==========================================
  Files          57       57              
  Lines        5502     5496       -6     
==========================================
- Hits         5295     5289       -6     
  Misses        207      207              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ozgunozerk
ozgunozerk merged commit 72d8768 into main Feb 23, 2026
6 checks passed
@ozgunozerk
ozgunozerk deleted the rwa-ttl-fix branch February 23, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 [Bug]: Identity Registry Storage Missing TTL Extension on Read

2 participants